package com.xsd.adapter.ObjectAdapter;

/**
 * @Description:
 * @Author: zhoufuzong
 * @Created: 2021-02-14 15:25:01
 * @Version: 1.1.0
 */

public class Phone {
    //充电
    public void charging(IVolatage5V iVolatage5V){
        if (iVolatage5V.output5V()==5){
            System.out.println("电压为5V start link power");

        }else if (iVolatage5V.output5V()>5){
            System.out.println("电压大于5V, stop link");
        }
    }
}
